<%@ page language="java" pageEncoding="UTF-8"%><%@ include
	file="/WEB-INF/commons/taglibs.jsp"%>
<!-- 如果session中用户名为空，跳转到登录页面 -->
<%@ page import="com.google.appengine.api.users.User"%>
<%@ page import="com.google.appengine.api.users.UserService"%>
<%@ page import="com.google.appengine.api.users.UserServiceFactory"%>
<%
	UserService userService = UserServiceFactory.getUserService();
	User user = userService.getCurrentUser();
	if (user == null) {
		response.sendRedirect(userService.createLoginURL("/myFlows"));
	}
%>

<!-- Flow展示区 -->
<table>
	<tr>
		<td><%@ include file="/WEB-INF/commons/flows.jsp"%></td>
		<td>
		<div id="flowsNav">
		<div class="navContainer">
		<p class="title">好友列表</p>
		<ul>
			<c:forEach var="e" items="${it.friends}">
				<li>
				<p class="name"><a href="<c:url value="/user/${e.name}"/>">${e.name}&nbsp;&nbsp;[From:&nbsp;${e.type}]</a></p>
				</li>
			</c:forEach>
		</ul>
		</div>
		</div>
		</td>
	</tr>
</table>